package com.github.kotvertolet.youtubejextractor.models.newModels;

import com.google.gson.annotations.SerializedName;
import ohos.utils.Parcel;
import ohos.utils.Sequenceable;

import java.io.Serializable;

public class PlayerAnnotationsExpandedRenderer implements Sequenceable, Serializable {

    @SerializedName("featuredChannel")
    private FeaturedChannel featuredChannel;

    @SerializedName("annotationId")
    private String annotationId;

    @SerializedName("allowSwipeDismiss")
    private boolean isAllowSwipeDismiss;



    public static final Sequenceable.Producer<PlayerAnnotationsExpandedRenderer> CREATOR = new Producer<PlayerAnnotationsExpandedRenderer>() {
        @Override
        public PlayerAnnotationsExpandedRenderer createFromParcel(Parcel parcel) {
            // Initialize an instance first, then do customized unmarshlling.
            PlayerAnnotationsExpandedRenderer playerAnnotationsExpandedRenderer = new PlayerAnnotationsExpandedRenderer();
            playerAnnotationsExpandedRenderer.unmarshalling(parcel);
            return playerAnnotationsExpandedRenderer;
        }
    };



    @Override
    public boolean marshalling(Parcel parcel) {
        parcel.writeSequenceable(this.featuredChannel);
        parcel.writeString(this.annotationId);
        parcel.writeBoolean(this.isAllowSwipeDismiss);
        return true;
    }

    @Override
    public boolean unmarshalling(Parcel parcel) {
        parcel.readSequenceable(this.featuredChannel);
        this.annotationId=parcel.readString();
        this.isAllowSwipeDismiss=parcel.readBoolean();
        return true;
    }

    @Override
    public String toString() {
        return "PlayerAnnotationsExpandedRenderer{" +
                "featuredChannel=" + featuredChannel +
                ", annotationId='" + annotationId + '\'' +
                ", isAllowSwipeDismiss=" + isAllowSwipeDismiss +
                '}';
    }

    public FeaturedChannel getFeaturedChannel() {
        return featuredChannel;
    }

    public void setFeaturedChannel(FeaturedChannel featuredChannel) {
        this.featuredChannel = featuredChannel;
    }

    public String getAnnotationId() {
        return annotationId;
    }

    public void setAnnotationId(String annotationId) {
        this.annotationId = annotationId;
    }

    public boolean isAllowSwipeDismiss() {
        return isAllowSwipeDismiss;
    }

    public void setAllowSwipeDismiss(boolean allowSwipeDismiss) {
        isAllowSwipeDismiss = allowSwipeDismiss;
    }
}
